package a66weding.com.jiehuntong;

import android.app.Application;
import android.test.ApplicationTestCase;
import android.util.Log;

import java.text.DecimalFormat;

/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);

        String s = floatNumDeal(0.1d);
        Log.e("Log", "ApplicationTest: s"+s );
        System.out.print("ApplicationTest: s"+s);
    }
    public static String floatNumDeal(double num){

        DecimalFormat df   = new DecimalFormat("######0.00");
        return df.format(num);
    }
}